var fs = require("fs");

var readable = fs.createReadStream("from.txt");
var writable = fs.createWriteStream("to.txt");
readable.pipe(writable);